using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FeatureClass
{
    /// <summary>
    /// <para>Calculate Default XY Tolerance</para>
    /// <para>Calculates the default xy tolerance.</para>
    /// <para>计算缺省的 xy 容差。</para>
    /// </summary>    
    [DisplayName("Calculate Default XY Tolerance")]
    public class CalculateDefaultClusterTolerance : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CalculateDefaultClusterTolerance()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public CalculateDefaultClusterTolerance(object _in_features)
        {
            this._in_features = _in_features;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Calculate Default XY Tolerance";

        public override string CallName => "management.CalculateDefaultClusterTolerance";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_features, _cluster_tolerance];

        /// <summary>
        /// <para>Input Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Default XY Tolerance</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Default XY Tolerance")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public double _cluster_tolerance { get; set; }


        public CalculateDefaultClusterTolerance SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}